package com.jikexueyuan.ref;

/**
 * Created by zmzp on 14-12-4.
 */
class Ref1{
    int temp =10;
}
public class RefDemo01 {
    public static void main(String[] args) {
        Ref1 r1=new Ref1();
        r1.temp=20;
        System.out.println(r1.temp);
        tell(r1);
        System.out.println(r1.temp);
    }
    public static void tell(Ref1 r2){
        r2.temp=30;
    }
}
